var dot = require('dot');
var path = require('path');
var fs = require('fs');

// var render = dot.process({
//     path: __dirname
// });
// var txt = render.file({
//     foo: '你好啊 王小波'
// });
// console.log(txt);
var origin = fs.readFileSync(path.join(__dirname, './file.dot'));

var render = dot.template(origin);
console.log(render({
    reviewer: '付和宽',
    realName: '李鸿章',
    phone: 110,
    mail: '110@163.com'
}));
